package com.star.uc.contract.constant;

/**
 * 用户token
 *
 * @author zhouhengzhe
 * @version 1.0
 * @date 2023/10/20 17:50
 */
public class UserRedisConstants {

    private UserRedisConstants() {
    }

    public static final String USER_PREFIX = "user:";
    /**
     * 用户信息存储
     */
    public static final String USER_TOKEN = USER_PREFIX + "token:";

    /**
     * 用户ID redis key
     */
    public static final String USER_GENERATOR_UID = USER_PREFIX + "generator:uid:";

    /**
     * 用户ip注册数量
     */
    public static final String USER_TENANT_ID_IP_COUNT = USER_PREFIX + "email:tenantId:ip:count:";

    /**
     * 同一个应用同一个账号在一定时间内内只能发送X次验证码
     */
    public static final String USER_TENANT_ID_IDENTIFIER_LIMIT = USER_PREFIX + "tenantId:identifier:limit:";

    /**
     * 用户短信验证码
     */
    public static final String USER_SMS_VALIDATE_CODE = USER_PREFIX + "validate:sms:code";
    /**
     * 用户邮箱验证码
     */
    public static final String USER_EMAIL_VALIDATE_CODE = USER_PREFIX + "validate:email:code";
}
